package com.quectel.core.module.partybuildingsurvey.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 *
 * @author bob
 * @email bob.yu@quectel.com
 * @date 2023/05/24 11:38
 */
@Data
@Schema
public class PartySurveyPersonAnswerDto implements Serializable {

    /**
    * id
    */
    @Schema(description = "id")
    private Long id;

    /**
    * 记录id
    */
    @Schema(description = "记录Id")
    private Long recordId;

    /**
     * 问卷id
     */
    @Schema(description = "问卷id")
    private Long partySurveyId;

    /**
    * 题目id
    */
    @Schema(description = "题目id")
    private Long questionId;

    /**
    * 题目答案
    */
    @Schema(description = "题目答案")
    private String content;

    /**
    * 创建时间
    */
    @Schema(description = "创建时间")
    private Date createTime;



    /************非数据库字段 start ************/
    /**
     * 1.选择题 对应选项的id
     * 2.填空题 填写的内容
     * 3.评价 评分
     */
    /**
     * 创建时间
     */
    @Schema(description = "选择题答案")
    private List<Long> choiceAnswer;

    @Schema(description = "填空题答案")
    private Map<Long,String> blankAnswer;

    @Schema(description = "评分题答案")
    private Map<Long,Double> evaluateAnswer;

    @Schema(description = "参与人")
    private String personName;


    /************非数据库字段 end **************/
}
